package com.duanjw.springboot.springdoc.entity;

import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 用户
 *
 * @author duanjw
 */
@Schema(title = "用户")
public class User {

    @Schema(title = "用户id")
    private Integer id;
    @Schema(title = "用户姓名")
    private String name;
    @Schema(title = "生日")
    private Date birthday;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", birthday=" + birthday +
                '}';
    }
}
